<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

    <head>
        <title th:text="${pageTitle}"></title>
        <div data-th-replace="layout/head-top"></div>
    </head>
    <body class="gray-bg">
        <div class="wrapper wrapper-content animated fadeInLeft">
            <div data-th-replace="common/functionDepict"></div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>讲师详情</h5>
                            <div style="text-align: right;">
                                <a th:href="@{/admin/manage/teacher/initUpdate?id={teacherId}(teacherId=${teacher['id']})}">
                                    <span>
                                        <button class="btn btn-white" data-toggle="tooltip" data-placement="top" title="" data-original-title="修改讲师详情">
                                            <i class="fa fa-edit"></i> 修改讲师详情
                                        </button>
                                    </span>
                                </a>
                            </div>
                        </div>
                        <input type="hidden" id="teacherId" th:value="${teacher['id']}"/>
                        <input type="hidden" id="userId" th:value="${teacher['sysUserId']}"/>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="text-center">
                                        <div class="m-b-sm">
                                            <img alt="图片加载失败..." class="img-circle" width="100%" height="100%" style="max-width: 160px" th:src="${#maps.isEmpty(teacher['imageMap'])} ? @{{path}/front/mobile/v3/img/default/default-face.jpg?v={v}(path=${staticPath},v=${v})} : ${teacher['imageMap']['pcUrlMap']['large']}">
                                        </div>
                                        <p class="font-bold" th:text="${teacher['teacherName']}"></p>
                                    </div>
                                </div>
                            </div>
                            <hr style="visibility: hidden" />
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="tabs-container">
                                        <ul class="nav nav-tabs">
                                            <li class="active"><a href="javascript:void(0);" id="btn1" aria-expanded="true"> 基本信息</a></li>
                                            <li th:if="${teacher['isQuestion']==1}" class=""><a href="javascript:void(0);" id="btn2" aria-expanded="false"> 回答记录</a></li>
                                            <li th:if="${teacher['isQuestion']==1}" class=""><a href="javascript:void(0);" id="btn3"  aria-expanded="false"> 旁听收益记录</a></li>
                                            <li class=""><a href="javascript:void(0);" id="btn4" aria-expanded="false"> 登录记录</a></li>
                                        </ul>
                                        <div id="teacher-info">

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div data-th-replace="layout/head-footer"></div>
        <script type="text/javascript" th:src="@{{path}/admin/libs/plugins/layer/laydate/laydate.js?v={v}(path=${staticPath}, v=${v})}"></script>
        <script type="text/javascript" th:src="@{{path}/admin/business/manage/teacher/teacher-info.js?v={v}(path=${staticPath},v=${v})}"></script>
    </body>
</html>
